﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="sumcdbDataSet" targetNamespace="http://tempuri.org/sumcdbDataSet.xsd" xmlns:mstns="http://tempuri.org/sumcdbDataSet.xsd" xmlns="http://tempuri.org/sumcdbDataSet.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="sumcdbConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="sumcdbConnectionString (Settings)" PropertyReference="ApplicationSettings.SUMCreader.Properties.Settings.GlobalReference.Default.sumcdbConnectionString" Provider="System.Data.OleDb" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="StationsTableAdapter" GeneratorDataComponentClassName="StationsTableAdapter" Name="Stations" UserDataComponentName="StationsTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="sumcdbConnectionString (Settings)" DbObjectName="Stations" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM `Stations` WHERE ((`STATTION_ID` = ?) AND ((? = 1 AND `NAIMENOVANIE` IS NULL) OR (`NAIMENOVANIE` = ?)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_STATTION_ID" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="STATTION_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_NAIMENOVANIE" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="NAIMENOVANIE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Original_NAIMENOVANIE" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="NAIMENOVANIE" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO `Stations` (`STATTION_ID`, `NAIMENOVANIE`) VALUES (?, ?)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="STATTION_ID" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="STATTION_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="NAIMENOVANIE" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="NAIMENOVANIE" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT STATTION_ID, NAIMENOVANIE FROM Stations</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE `Stations` SET `STATTION_ID` = ?, `NAIMENOVANIE` = ? WHERE ((`STATTION_ID` = ?) AND ((? = 1 AND `NAIMENOVANIE` IS NULL) OR (`NAIMENOVANIE` = ?)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="STATTION_ID" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="STATTION_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="NAIMENOVANIE" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="NAIMENOVANIE" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_STATTION_ID" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="STATTION_ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="IsNull_NAIMENOVANIE" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="NAIMENOVANIE" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="Original_NAIMENOVANIE" Precision="0" ProviderType="VarWChar" Scale="0" Size="0" SourceColumn="NAIMENOVANIE" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="STATTION_ID" DataSetColumn="STATTION_ID" />
              <Mapping SourceColumn="NAIMENOVANIE" DataSetColumn="NAIMENOVANIE" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="sumcdbConnectionString (Settings)" DbObjectName="Stations" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillStationByID" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataStationByID" GeneratorSourceName="FillStationByID" GetMethodModifier="Public" GetMethodName="GetDataStationByID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataStationByID" UserSourceName="FillStationByID">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT STATTION_ID, NAIMENOVANIE FROM Stations WHERE STATTION_ID = ?</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="true" AutogeneratedName="Param1" ColumnName="STATTION_ID" DataSourceName="Stations" DataTypeServer="DbType.Int32" DbType="Int32" Direction="Input" ParameterName="STATTION_ID" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="STATTION_ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="sumcdbDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="sumcdbDataSet" msprop:Generator_UserDSName="sumcdbDataSet">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="Stations" msprop:Generator_TableClassName="StationsDataTable" msprop:Generator_TableVarName="tableStations" msprop:Generator_TablePropName="Stations" msprop:Generator_RowDeletingName="StationsRowDeleting" msprop:Generator_UserTableName="Stations" msprop:Generator_RowChangingName="StationsRowChanging" msprop:Generator_RowEvHandlerName="StationsRowChangeEventHandler" msprop:Generator_RowDeletedName="StationsRowDeleted" msprop:Generator_RowEvArgName="StationsRowChangeEvent" msprop:Generator_RowChangedName="StationsRowChanged" msprop:Generator_RowClassName="StationsRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="STATTION_ID" msprop:Generator_ColumnVarNameInTable="columnSTATTION_ID" msprop:Generator_ColumnPropNameInRow="STATTION_ID" msprop:Generator_ColumnPropNameInTable="STATTION_IDColumn" msprop:Generator_UserColumnName="STATTION_ID" type="xs:int" />
              <xs:element name="NAIMENOVANIE" msprop:Generator_ColumnVarNameInTable="columnNAIMENOVANIE" msprop:Generator_ColumnPropNameInRow="NAIMENOVANIE" msprop:Generator_ColumnPropNameInTable="NAIMENOVANIEColumn" msprop:Generator_UserColumnName="NAIMENOVANIE" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:Stations" />
      <xs:field xpath="mstns:STATTION_ID" />
    </xs:unique>
  </xs:element>
</xs:schema>